import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Admin
 * Date: 2022-05-16
 * Time: 20:00
 */
public class Main {
    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createTree();
        binaryTree.postOrder(root);
    }
    public static void main7(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createTree();
        binaryTree.levelOrder(root);

    }
    public static void main6(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createTree();
        BinaryTree.TreeNode val = binaryTree.find(root,'E');
        System.out.println(val.val);
    }
    public static void main5(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createTree();
        System.out.println(binaryTree.getHeight(root));
    }
    public static void main3(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createTree();
        int ret = binaryTree.getKLevelNodeCount(root,2);
        System.out.println(ret);
    }
    public static void main2(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createTree();
        binaryTree.getLeafNodeCount(root);
        System.out.println(binaryTree.node);
    }
    public static void main1(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createTree();
        int ret= binaryTree.size(root);
        System.out.println(ret);
      /*  binaryTree.getLeafNodeCount(root);
        System.out.println(BinaryTree.NodeSize);*/
    }
}
